package com.erclab.internal.xpresso.formelements;


import com.erclab.internal.xpresso.exceptions.FormException;
import com.erclab.internal.xpresso.forms.Form;

public class Hidden extends FormElement {

	@Override
	public boolean isModifiable() {
		return true;
	}

	@Override
	public void loadLookupValues(Form theForm) throws FormException {
		// nothing to do
		
	}

	@Override
	public String toHTML(Form theForm) {
		StringBuffer sb = new StringBuffer();
		sb.append("<INPUT TYPE=\"hidden\" name=\"Field");
		sb.append(this.idFormElement);
		sb.append("\" value=\"" + this.parameters + "\"");
		sb.append(" id=\"HiddenField" + this.destinationColumn + "\">");
		return sb.toString();
	}

	@Override
	public boolean isHidden() {
		return true;
	}
	
	



}
